<div class="backlog">
  <div class="header">
    <%= render :partial => "menu", :locals => {:backlog => backlog} %>
    <%- if backlog[:sprint] %>
      <%= render :partial => "rb_sprints/sprint", :object => backlog[:sprint] %>
      <div class="velocity"> </div>
    <%- else %>
      <div class="label"><%=l(:label_product_backlog).titleize %></div>
      <a class="add_new_story" href="#">New Story</a>
      <a class="add_new_sprint" href="#">New Sprint</a>
      <%= link_to "Close completed Sprints", close_completed_project_versions_path(@project), :class => "close_sprint", :method => :put, :target => "_blank" %>
    <%- end %>
  </div>
  <ul class="stories">
    <%= render :partial => "rb_stories/story", :collection => backlog[:stories] %>
  </ul>
</div>
